home *** CD-ROM | disk | FTP | other *** search
Wrap
CCCCPPPPLLLLXXXXOOOOPPPPSSSS((((3333CCCC++++++++)))) CCCCPPPPLLLLXXXXOOOOPPPPSSSS((((3333CCCC++++++++)))) NNNNAAAAMMMMEEEE complex_operators - operators for the C++ complex math library SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_...._hhhh_>>>> _cccc_llll_aaaa_ssss_ssss _cccc_oooo_mmmm_pppp_llll_eeee_xxxx _{{{{ _pppp_uuuu_bbbb_llll_iiii_cccc_:::: _ffff_rrrr_iiii_eeee_nnnn_dddd _cccc_oooo_mmmm_pppp_llll_eeee_xxxx _oooo_pppp_eeee_rrrr_aaaa_tttt_oooo_rrrr_++++_((((_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_,,,, _cccc_oooo_mmmm_pppp_llll_eeee_xxxx_))))_;;;; _ffff_rrrr_iiii_eeee_nnnn_dddd _cccc_oooo_mmmm_pppp_llll_eeee_xxxx _oooo_pppp_eeee_rrrr_aaaa_tttt_oooo_rrrr_----_((((_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_))))_;;;; _ffff_rrrr_iiii_eeee_nnnn_dddd _cccc_oooo_mmmm_pppp_llll_eeee_xxxx _oooo_pppp_eeee_rrrr_aaaa_tttt_oooo_rrrr_----_((((_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_,,,, _cccc_oooo_mmmm_pppp_llll_eeee_xxxx_))))_;;;; _ffff_rrrr_iiii_eeee_nnnn_dddd _cccc_oooo_mmmm_pppp_llll_eeee_xxxx _oooo_pppp_eeee_rrrr_aaaa_tttt_oooo_rrrr_****_((((_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_,,,, _cccc_oooo_mmmm_pppp_llll_eeee_xxxx_))))_;;;; _ffff_rrrr_iiii_eeee_nnnn_dddd _cccc_oooo_mmmm_pppp_llll_eeee_xxxx _oooo_pppp_eeee_rrrr_aaaa_tttt_oooo_rrrr_////_((((_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_,,,, _cccc_oooo_mmmm_pppp_llll_eeee_xxxx_))))_;;;; _ffff_rrrr_iiii_eeee_nnnn_dddd _iiii_nnnn_tttt _oooo_pppp_eeee_rrrr_aaaa_tttt_oooo_rrrr_====_====_((((_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_,,,, _cccc_oooo_mmmm_pppp_llll_eeee_xxxx_))))_;;;; _ffff_rrrr_iiii_eeee_nnnn_dddd _iiii_nnnn_tttt _oooo_pppp_eeee_rrrr_aaaa_tttt_oooo_rrrr_!!!!_====_((((_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_,,,, _cccc_oooo_mmmm_pppp_llll_eeee_xxxx_))))_;;;; _vvvv_oooo_iiii_dddd _oooo_pppp_eeee_rrrr_aaaa_tttt_oooo_rrrr_++++_====_((((_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_))))_;;;; _vvvv_oooo_iiii_dddd _oooo_pppp_eeee_rrrr_aaaa_tttt_oooo_rrrr_----_====_((((_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_))))_;;;; _vvvv_oooo_iiii_dddd _oooo_pppp_eeee_rrrr_aaaa_tttt_oooo_rrrr_****_====_((((_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_))))_;;;; _vvvv_oooo_iiii_dddd _oooo_pppp_eeee_rrrr_aaaa_tttt_oooo_rrrr_////_====_((((_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_))))_;;;; _}}}}_;;;; DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN The basic arithmetic operators, comparison operators, and assignment operators are overloaded for complex numbers. The operators have their conventional precedences. In the following descriptions for _cccc_oooo_mmmm_pppp_llll_eeee_xxxx operators, - _x, _y, and _z are of type _cccc_oooo_mmmm_pppp_llll_eeee_xxxx. Arithmetic operators: _z _==== _x _++++ _y Returns a _cccc_oooo_mmmm_pppp_llll_eeee_xxxx which is the arithmetic sum of complex numbers _x and _y. _z _==== _----_x Returns a _cccc_oooo_mmmm_pppp_llll_eeee_xxxx which is the arithmetic negation of complex number _x. _z _==== _x _---- _y Returns a _cccc_oooo_mmmm_pppp_llll_eeee_xxxx which is the arithmetic difference of complex numbers _x and _y. _z _==== _x _**** _y Returns a _cccc_oooo_mmmm_pppp_llll_eeee_xxxx which is the arithmetic product of complex numbers _x and _y. _z _==== _x _//// _y Returns a _cccc_oooo_mmmm_pppp_llll_eeee_xxxx which is the arithmetic quotient of complex numbers _x and _y. Comparison operators: PPPPaaaaggggeeee 1111 CCCCPPPPLLLLXXXXOOOOPPPPSSSS((((3333CCCC++++++++)))) CCCCPPPPLLLLXXXXOOOOPPPPSSSS((((3333CCCC++++++++)))) _x _====_==== _y Returns non-zero if complex number _x is equal to complex number _y; returns 0 otherwise. _x _!!!!_==== _y Returns non-zero if complex number _x is not equal to complex number _y; returns 0 otherwise. Assignment operators: _x _++++_==== _y Complex number _x is assigned the value of the arithmetic sum of itself and complex number _y. _x _----_==== _y Complex number _x is assigned the value of the arithmetic difference of itself and complex number _y. _x _****_==== _y Complex number _x is assigned the value of the arithmetic product of itself and complex number _y. _x _////_==== _y Complex number _x is assigned the value of the arithmetic quotient of itself and complex number _y. WWWWAAAARRRRNNNNIIIINNNNGGGG The assignment operators do not produce a value that can be used in an expression. That is, the following construction is syntactically invalid, _cccc_oooo_mmmm_pppp_llll_eeee_xxxx _xxxx_,,,, _yyyy_,,,, _zzzz_;;;; _xxxx _==== _(((( _yyyy _++++_==== _zzzz _))))_;;;; whereas, _xxxx _==== _(((( _yyyy _++++ _zzzz _))))_;;;; _xxxx _==== _(((( _yyyy _====_==== _zzzz _))))_;;;; are valid. SSSSEEEEEEEE AAAALLLLSSSSOOOO _cccc_oooo_mmmm_pppp_llll_eeee_xxxx(3C++), _cccc_aaaa_rrrr_tttt_pppp_oooo_llll(3C++), _cccc_pppp_llll_xxxx_eeee_rrrr_rrrr(3C++), _cccc_pppp_llll_xxxx_eeee_xxxx_pppp(3C++), and _cccc_pppp_llll_xxxx_tttt_rrrr_iiii_gggg(3C++). PPPPaaaaggggeeee 2222